package com.peoit.honeycomb.dto;

import com.peoit.honeycomb.domain.User;

/**
 * Created by Bing.Zeng on 2015/9/29.
 */
public class UserRealNameVerifyDto extends BaseDto {

	// 真实姓名
	private String realName;

	// 固定资产
	private String fixedAssets;;
	// 年收益
	private String annualEarning;
	// 用户身份证号码
	private String idNumber;
	// 紧急联系人姓名
	private String emergencyContactPersonName;
	// 紧急联系人号码
	private String emergencyContactPersonNumber;
	// 身份证正面图片路径
	private String idCardFrontFile;
	// 身份证反面图片 路径
	private String idCardBackFile;

	/**
	 *
	 * @param user
	 * @param dto
	 * @return
	 */
	public static User fillUser(User user, UserRealNameVerifyDto dto) {

		user.setFixedAssets(dto.getFixedAssets());
		user.setAnnualEarning(dto.getAnnualEarning());
		user.setIdNumber(dto.getIdNumber());
		user.setEmergencyContactPersonName(dto.getEmergencyContactPersonName());
		user.setEmergencyContactPersonNumber(dto.getEmergencyContactPersonNumber());
		user.setIdCardFrontFile(dto.getIdCardFrontFile());
		user.setIdCardBackFile(dto.getIdCardBackFile());
		user.setUserRealName(dto.getRealName());

		return user;
	}

	public String getFixedAssets() {
		return fixedAssets;
	}

	public void setFixedAssets(String fixedAssets) {
		this.fixedAssets = fixedAssets;
	}

	public String getIdCardFrontFile() {
		return idCardFrontFile;
	}

	public void setIdCardFrontFile(String idCardFrontFile) {
		this.idCardFrontFile = idCardFrontFile;
	}

	public String getEmergencyContactPersonName() {
		return emergencyContactPersonName;
	}

	public void setEmergencyContactPersonName(String emergencyContactPersonName) {
		this.emergencyContactPersonName = emergencyContactPersonName;
	}

	public String getEmergencyContactPersonNumber() {
		return emergencyContactPersonNumber;
	}

	public void setEmergencyContactPersonNumber(String emergencyContactPersonNumber) {
		this.emergencyContactPersonNumber = emergencyContactPersonNumber;
	}

	public String getAnnualEarning() {
		return annualEarning;
	}

	public void setAnnualEarning(String annualEarning) {
		this.annualEarning = annualEarning;
	}

	public String getIdNumber() {
		return idNumber;
	}

	public void setIdNumber(String idNumber) {
		this.idNumber = idNumber;
	}

	public String getIdCardBackFile() {
		return idCardBackFile;
	}

	public void setIdCardBackFile(String idCardBackFile) {
		this.idCardBackFile = idCardBackFile;
	}

	public String getRealName() {
		return realName;
	}

	public void setRealName(String realName) {
		this.realName = realName;
	}
}
